<include file='Public:header'/>
<include file='Public:menu'/>
  <div id="main-content">
    <!-- Page Head -->
    <h2>商品评论管理</h2>
    <p id="page-intro">有什么可以帮助您？</p>
    <!-- End .shortcut-buttons-set -->
    <div class="clear"></div>
    <!-- End .clear -->
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>评论列表</h3>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
          <table>
            <thead>
              <tr>
                <th>评论ID</th>
                <th>商品ID</th>
                <th>评论内容</th>
                <th>状态</th>
                <?php if($data[0]['cid'] == 0){
                	echo "<th>查看针对本条评论的评论</th>";
                	}
                ?>
                <th>评论时间</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
              <tr>
                <td>{$vo.id}</td>
                <td><a href="__APP__/miao/edit/id/{$vo.gid}" target="_blank" title="点击编辑商品">{$vo.gid}</a></td>
                <td>{$vo.content}</td>
                <td>
                <?php
                	if($vo['status'] == 1){
                		echo '<a href="__URL__/changestatus/status/0/id/'.$vo['id'].'">禁用</a>|启用';
                	}else{
                		echo '禁用|<a href="__URL__/changestatus/status/1/id/'.$vo['id'].'">启用</a>';
                	}	
                ?></td>
                <?php 
	                if($vo['cid'] == 0){
	                	echo '<td><a href="__URL__/index/cid/'.$vo['id'].'">查看</a></td>';
	                }
                ?>
                <td>{$vo.ctime|date="Y-m-d H:i:s",###}</td>
                <td>
                  <!-- Icons -->
                  <a href="__URL__/delete/id/{$vo.id}" title="Delete"><img src="__PUBLIC__/admin/images/icons/cross.png" alt="Delete" /></a></td>
              </tr>
              </foreach>
            </tbody>
          </table>
          <tfoot>
              <tr>
                <td colspan="6">
                  <div class="pagination"> {$page}</div>
                  <!-- End .pagination -->
                  <div class="clear"></div>
                </td>
              </tr>
         </tfoot>
        </div>
        <!-- End #tab1 -->
        <div class="tab-content" id="tab2">
          <form action="#" method="post">
            <fieldset>
            <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
            <p>
              <label>Small form input</label>
              <input class="text-input small-input" type="text" id="small-input" name="small-input" />
              <span class="input-notification success png_bg">Successful message</span>
              <!-- Classes for input-notification: success, error, information, attention -->
              <br />
              <small>A small description of the field</small> </p>
            <p>
              <label>Medium form input</label>
              <input class="text-input medium-input datepicker" type="text" id="medium-input" name="medium-input" />
              <span class="input-notification error png_bg">Error message</span> </p>
            <p>
              <label>Large form input</label>
              <input class="text-input large-input" type="text" id="large-input" name="large-input" />
            </p>
            <p>
              <label>Checkboxes</label>
              <input type="checkbox" name="checkbox1" />
              This is a checkbox
              <input type="checkbox" name="checkbox2" />
              And this is another checkbox </p>
            <p>
              <label>Radio buttons</label>
              <input type="radio" name="radio1" />
              This is a radio button<br />
              <input type="radio" name="radio2" />
              This is another radio button </p>
            <p>
              <label>This is a drop down list</label>
              <select name="dropdown" class="small-input">
                <option value="option1">Option 1</option>
                <option value="option2">Option 2</option>
                <option value="option3">Option 3</option>
                <option value="option4">Option 4</option>
              </select>
            </p>
            <p>
              <label>Textarea with WYSIWYG</label>
              <textarea class="text-input textarea wysiwyg" id="textarea" name="textfield" cols="79" rows="15"></textarea>
            </p>
            <p>
              <input class="button" type="submit" value="Submit" />
            </p>
            </fieldset>
            <div class="clear"></div>
            <!-- End .clear -->
          </form>
        </div>
        <!-- End #tab2 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <div class="clear"></div>
    
<include file='Public:footer'/>